<html>
<head>
	<meta charset="UTF-8">
	<title>个人用户注册</title>
	<link rel="stylesheet" href="assets/css/bootstrap.min.css">
</head>
<body>
<div class="container-fluid col-md-10">
	<h1 class="text-center">个人注册</h1>
	<form  method=post action="doUserReg.php"enctype="multipart/form-data" class="form-horizontal">
	<div class="form-group">
		<label for="exampleInputUserName" class="col-md-2 control-label">姓名</label>
		<div class="col-md-10">
		<input type="text" name="username"class="form-control"placeholder="姓名"required=""></div>
	</div>
	<div class="form-group">
		<label for="" class="col-md-2 control-label">密码</label>
		<div class="col-md-10">
			<input type="password"name="password" class="form-control"placeholder="密码"required="">
		</div>
	</div>
	<div class="form-group">
		<label for="" class="col-md-2 control-label">性别</label>
		<div class="col-md-10">
		<label class="radio-inline">
			<input type="radio"name="gender"value="0" checked="">男</label>
			<label class="radio-inline">
			<input type="radio"name="gender"value="1" checked="">女</label>
		</div>
	</div>
	<div class="form-group">
	<label class="col-md-2 control-label">爱好</label>
	<div class="col-md-10">
		<label class="checkbox-inline">
			<input type="checkbox"name="hobby[]"value="旅游">旅游</label>
		<label class="checkbox-inline">
			<input type="checkbox"name="hobby[]"value="登山">登山</label>
		<label class="checkbox-inline">
			<input type="checkbox"name="hobby[]"value="健身">健身</label>
		<label class="checkbox-inline">
			<input type="checkbox"name="hobby[]"value="上网">上网</label>
		<label class="checkbox-inline">
			<input type="checkbox"name="hobby[]"value="游泳">游泳</label>
	</div>		
	</div>
	<div class="form-group">
	<label class="col-md-2 control-label">学历</label>
	<div class="col-md-10">
	<select  class="form-control"  name="degree">
		<option value="0">请选择</option>
			<option value="1">高中</option>
			<option value="2">大学</option>
			<option value="3">研究生</option>
			<option value="4">博士生</option>
	</select>
	</div>
	</div>
	<div class="form-group">
	<label for="exampleInputTextareal" class="col-md-2 control-label">自我介绍</label>
	<div class="col-md-10">
		<textarea class="form-control" rows="3" id="exampleInputTextareal" placeholder="自我介绍" name="intro"></textarea>
	</div>
	</div>
	<div class="form-group">
	<label for="exampleInputFile" class="col-md-2 control-label">头像</label>
	<div class="col-md-10">
		<input type="file" name="pic" id="exampleInputFile" required>
	</div>
	</div>
	<div class="form-group">
	<div class="col-sm-offset-2 col-sm-10">
		<input type="submit" class="btn btn-default" value="提交">
		<input type="reset" class="btn btn-default" value="重置">
	</div>
	</div>
	<!-- <?php
	if(isset($_GET["msg1"])){
	echo'<h1 style="color:red;">'.$_GET["msg1"]."</h1>";
	}
	?>
	<?php
	if(isset($_GET["msg2"])){
	echo'<h1 style="color:red;">'.$_GET["msg2"]."</h1>";
	}
	?> -->
	</form>
</div>
<!-- <form  method=post action="doUserReg.php"enctype="multipart/form-data" class="form-horizontal">
	<table border="1">
	<tr>
	<td>姓名：</td>
	<td><input type="text" name="username" required> </td>
	</tr>
	<tr>
	<td>密码：</td>
	<td><input type="password" name="password" required> </td>
	</tr>
	<tr>
	<td>性别：</td>
	<td>
	    <input type="radio" name="gender" value=0 checked>男
	    <input type="radio" name="gender" value=1 >女 
	</td>
	</tr>
	<tr>
	<td>生日：</td>
	<td><input type="date" name="birthdate" > 
	</td>
	</tr>
	<tr>
	<td>爱好：</td>
	<td><input type="checkbox" name="hobby[]" value="旅游" checked>旅游
	    <input type="checkbox" name="hobby[]" value="登山" checked>登山 
	    <input type="checkbox" name="hobby[]" value="健身" >健身 
	    <input type="checkbox" name="hobby[]" value="上网" >上网 
	    <input type="checkbox" name="hobby[]" value="游泳" >游泳 
	</td>
	</tr>
	<tr>
	<td>学历:</td>
	<td>
		<select name="degree" >
			<option value="0">请选择</option>
			<option value="1">高中</option>
			<option value="2">大学</option>
			<option value="3">研究生</option>
			<option value="4">博士生</option>
		</select>
	</td>
	</tr>6
	<tr>
	<td>自我介绍</td>
	<td><textarea  name="intro" >自我简介:</textarea>
	</td>
	</tr>
	<tr>
	<td>头像</td>
	<td><input type="file" name="pic" > </td>
	</tr>	
	<tr>
		<td colspan="2">
			<input type="submit" value="提交">
			<input type="reset" value="重置">
		</td>
	</tr>
	
</table>
</form> -->
</body>
</html>